fix NPE caused by menu on Android 2.x