category conditional

trying to fix site crash when get_query_var is called by something,
somewhere.
This is the only use in any custom files.