Fixed the show_on and hide_on logic - if we can't determine post ID (and...

... therefore its template as well) always return false and suppress showing CMB.