Removed redundant code from get_next_valid_worldname()