Adding an extra check to make sure that the response is not of the type 'Zend\Console\Response'.