Edit: fix NullPointerException when canceling the Open Project dialog.