Added code to prevent the engine from throwing exceptions if the URL is not HTTP one