Fix handling of xblocks rendered for "Pages" view