Added a type check so the framework better alerts to bad application responses

@dustincannon please review.