Merge "ART: Properly check for attached thread in CheckJNI"