This allows us to use it with untitled files as well BUG: 455078 (cherry picked from commit 0f03e8c5)