Abort if world is undefined. Fixes #6