Fixes bug in request hook w/ flash middleware+callback.