Stop a null error in drupal-format