Minor fix to make new testloop code work in editor.
Minor fix to make new testloop code work in editor.

New testloop code had some JNI calls that were not fully
blocked from executing in the unity editor.  Added additional
checks to make sure they only fired on an android device, where
the JNI code worked.

Change-Id: I53dfe2212bf1875e5c30ebf7fcdf5d3dfd0425e9

google/mechahamster,google/mechahamster