Check world for null in MusicPlayerLogic to prevent crashing the lobby

Fixes #6517
You can simplify this to `world != null && !world.IsShellmap`.