Fix environment value of problem with invalid problem already save

Fix old migration before Problem can save without environment. So assign it to avoid failure

See #557