fixes woosidebars post type recognition on post type archives

The sidebar was not showing up on the sensei message post type archive page. On further inspection I found that get_post_type() doesn't working as expected on the post type archives. This fix ensure that we always get the post type for the current post type archives page.