MDL-68974 calendar: Use page context for block check