prevent empty URLs to be loaded