throw error if trying to convert None to url