Fix for getting pagereference based on page guid

Fixes #1