Fix regression
Prevent NPE when the request has no tenant.

(Needs to be refactored so that calls that can NPE return Optional<Stuff>)
Provide global templates fallback for 404.html and 500.html so that
theme are not forced to implement them.