Fixes undefined index error when enabling/disabling the excerpt
Fixes invalid variable reference in _get_post_cat