Stop API call for incorrectly configured directive