fix ($http): throw error when string URL is provided. closes issue #10016

fix ($http): throw error when string URL is provided. closes issue #10016