Don't try and route to a note with no ID

Fixes #733