Problem/Motivation
NodeRevisionDeleteForm::submitForm runs a check to decide whether to redirect the user to the main page or the revision history page. This check, however, is a hardwired SQL query which not only fails with alternate storage engines but also if the route access check is changed.
Proposed resolution
Use the route access check instead. We redirect right there, it just makes sense not to redirect to a page which ends up access denied.