fix android crash on some devices (e.g. Tmall Magic Box).
First check if doxygen is installed before attempting to update doc.
[ci skip]
Tag the changes and add null check for pollInputDevices() also.
Merge branch 'fix_android_crash' into master.