Paths for api corrected for saving queries without project

[``* `#11101` Not possible to save queries or to change their visibility in project-independent work package list``](https://www.openproject.org/work_packages/11101)

Was attempting to save to the project query path when there was no project. Also have cleaned up the path helper names a little bit.