Add error check when can not check the request before creating response
Support 2.4.x module declare