do not resolve apphooks as long as a page is not published
Merge pull request #2547 from digi604/apphook-pre

do not resolve apphooks as long as a page is not published