Fixed check for BsBaseTemplate

... in SkinTemplateOutputPageBeforeExec hook handlers.

It was executed on Skin object and not on Template object.

Change-Id: I9a42928586bc65e4bc935a4ca389256dfa45a2d0