Fixed possible NPE, due to unrendered page