The project data in hook events is a stdClass object; define JPATH_THEMES in hook test command