fix menuInflater null crash on change orientation