add check on Drupal.ajax - fix Drupal.ajax is null error