Small fix to plugin to avoid errors on non-extant page ids