Fixed regression that causes all avm2 tests to fail in the js shell

Introduced by #882. Sorry.
Merge pull request #884 from tschneidereit/master

Fixed regression that causes all avm2 tests to fail in the js shell