fix NPE in getPageTypeDoc in PrepareVelocityContextService