Fix potential bug

Break first if there are no hash entries underneath "parameters:" rather
than checking for environment value.