Add additional check for running viewporter

First check for the element #viewporter. If not in dom and we are on a touch device we get loads of errors when trying to set styles on it later on.

Then we came on to have a Chrome Book. Although this is a touchdevice there is no need to run the viewporter. Other touchable notebook may be included.