fix ($http): throw error when string URL is provided