- Fix the readonly mode checking to avoid empty strings being passed (the `check_readonly_mode` before_action will not execute in the case of these re-dispatched exceptions) Partial backport of bca855f2396998943d52545fd9d59dc0d3da3183