Fix NPE on orientation change. Thanks Ecconia!
