Yes, that Yanfly fix makes it go back to the menu. But even if you have that fix, if on your Quest Journal, if Menu Access is left on True, the same error will be had. I tried it myself. I left it on True after putting Yanfly's fix and I get the same error. But once I change it to False, then I can leave and no error, that Yanfly fix is so that it does go back to the menu.
Hmm I dunno if your edit suggested that it was false in testing it.