s3:printing: Add NULL check for state_path()