Fixing NullPointer in mServer when orientation changed