Try to fix function checkCleanUrl for older versions of drupal