Made the webservice work as expected when an invalid action is supplied.