add if url exist then do split, this was causing an error when disabling autocomplete for mobile site
add if url exist then do split, this was causing an error when disabling autocomplete for mobile site

Ensembl/public-plugins,muffato/public-plugins,Ensembl/public-plugins,muffato/public-plugins,muffato/public-plugins,muffato/public-plugins,Ensembl/public-plugins