Hide debug toolbar when media = print

fix https://github.com/yiisoft/yii2/issues/3050
Merge pull request #3103 from githubjeka/patch-3

Hide debug toolbar when media = print