Simplify _getUntitledFileSuggestion and its caller
Increase untitled document limit to 9999 and fix ternary operator formatting.
Merge pull request #5984 from adobe/iwehrman/simplify-getUntitledFileSuggestion

Simplify _getUntitledFileSuggestion