API - 500 failure response for unknown URL

Fix posted here: https://github.com/librenms/librenms/pull/10082