diff --git a/google_tag.module b/google_tag.module
index b9f6176..aa77f6c 100644
--- a/google_tag.module
+++ b/google_tag.module
@@ -318,7 +318,7 @@ function _google_tag_status_check() {
     else {
       // Get the HTTP response status.
       $status = drupal_get_http_header('status');
-      $satisfied = strpos($statuses, $status) !== FALSE;
+      $satisfied = !empty($status) && strpos($statuses, $status) !== FALSE;
       $satisfied = ($toggle == GOOGLE_TAG_EXCLUDE_LISTED) ? !$satisfied : $satisfied;
     }
     $debug ? drupal_set_message(t('google_tag')) : '';
