Merge "ART: Properly check for attached thread in CheckJNI" into pi-dev