Prevent fatal errors when previewing or activating non-Genesis themes