Prevent fatal errors when previewing or activating non-Genesis themes

Fixes #4