#473080 by chx: Fix bug in block page access callback showing tabs that should not appear. (with tests)