ERRAI-744: Add hook for navigation error handling