fix backtrace when environment empty
Merge pull request #4435 from giantlock/develop

fix backtrace when environment empty