Remove dependency on CMS

Just check if ContentController and Page_Controller exist before referencing them