using viewmodel->terminate() to check whenever view has layout

in favor of usage of #88 that need to set sitemap xml that not using layout. Changed : 
```php
!$e->getViewModel() instanceof JsonModel
```
to 
```php
!$e->getViewModel()->terminate()
```
so it has general condition ( for example : FeedModel or others ).