Fixed typo.
Fixes for persistence option being enabled sometimes for unlogged users, and for the problem that made the persistence dialog appear blank.
Fixed the fix for the blank persistence dialog.
Better handling for errors when making layers persistent.