Fix error when check page was called from cron with no current user.