Fix exception with XML notes#index when no notes are found