fixing undefined index notice when no published filter provided