Only refresh after changing tilesets in the option menu if we're called from in the game. Fixes #6372.
Merge pull request #6378 from kevingranade/fix-tileset-crash-from-main-menu

Only refresh after changing tilesets in the option menu