am ace7d128: am d445b56c: Fix possible NPE caused while monkey test

* commit 'ace7d1285dc1d4ba42d4f767698c5b6078ecbac2':
  Fix possible NPE caused while monkey test