I was just able to reproduce this bug. It was to get stuck on the Inventory screen this time. Here are the exact steps I used. It happened at least twice in this exact way.
gzdoom -iwad DOOM2.WAD -file friendly.pk3 -warp 02
Completed camera quest, entered the secret area, collected both keys, completed the fishing quest, opened Inventory, opened Automap, closed Automap, unable to leave Inventory screen.
I hope this helps to reproduce the bug so it can be squished.
EDIT: additional conditions that may or may not have been present at the time; the level's alternate music CD was playing; the teleporter in the level was used at least once; neither of the level's switches had been activated; the problem ocurred while physically inside the exit room with the quest giver.