Make detection of sidebars in previewed template more robust

Utilize new temp hooks from http://core.trac.wordpress.org/ticket/25368

Fixes #15