Additional guards on AVM1 and rendering

Fixes #159