#334292 follow-up by sgilits: fixed WSOD when pageroute is not active and the theme registry is rebuilt