Changed behavior of New Note panel on closing

The panel is now correctly reset when closing the panel using the close
button or the Pryv Note button.

A validation is also added : the content field is now required.