BUGFIX check if hints are defined for given pagetype before using. 

Fixes #861