Fixed bug when cancelling bookmark creation.

It would create a bookmark whose name was None, which would break everything.