Issue #1228472: fix display of footer blocks when using the theme's footer option.