Added a couple of conditionals.

SM item archive was throwing some conditionals and a PHP error.  get_query_var is null in CTP archives.