Add NPE check in Iron Engine

Closes #1420