Fix Problem with environement == {} too in old migration

See #557