Fix/validate presence of name in query 3404

see: https://www.openproject.org/work_packages/3404

you may use this pretty awesome text for your changelog entry
<pre>* `#3404`[Work package tracking] Custom queries with empty names can be saved </pre>