prevent php notice on ID-less short URLs

fixes #10