Fix race condition for method root marking in VisitNativeRoots

Only mark if non null, we may see a non zero length with a null
array due to race conditions with class loading.

Bug: 22077752
Change-Id: Icd37f70482efe320185d46ce4391aa0e0e43ff6f
1 file changed