Add try/catch for missing Pre-route middleware

Added try/catch as it throws an obscure error otherwise, eg: TypeError: Cannot read property 'handle' of undefined