Don't crash when canceling the open panel for creating a new repository.

Fixed a crash when hitting cancel after trying to create a new repository.