Fixed bug where invalid policy type would not return a legitimate reponse object causing a python error.