Don't execute AVM1 functions on VM failure
Fixes AVM1 toString()
Merge pull request #1598 from yurydelendik/master

Fixes several swfdec AVM1 tests