MDL-39573 Theme: dnd fix for bootstrap

Added an additional check to make sure the side-post region exists on the page
before forcing the layout.