Console|libcommon: Improved "leavemap" command to support maps with no exits

The leavemap command can now be used when the map progression defines
no exits for the current map, thereby triggering episode completion.
If an InFine finale (debrief) is configured for the map then it will
also be triggered at this time.