Fix windows desktop wrong classes bug

Classes "mobile portrait" no more applying. Function device.landskape
now throws exception if window.orientation is undefined