Improve analysis saving

* Prevent saving an analysis without a title.
* Prevent saving multiple analysis when clicking multiple times on the
button.