Fix exception with GPX and RSS notes#index when no notes are found
Improve functional tests for notes#index