Merge "Fix possible NPE in ViewRoot with GL rendering enabled. Bug #3257222"