=htp #16289 in `handleException` also catch strict exceptions during route building or execution

Fixes #16289 

/cc @sirthias @Joe-Edwards