fix bug when fetching metadata on pages that don't exist