Fix incorrect null checks in 2 JVMTI functions

The functions GetThreadListStackTraces and GetOwnedMonitorInfo would
incorrectly fail to check all their arguments for null-pointers. This
could cause crashes if called with incorrect arguments.

Bug: 76204023
Test: ./test.py --host -j50
Merged-In: I0be69a63b9bbb0a6aaf1092fde725332ae3296e8
Change-Id: I0be69a63b9bbb0a6aaf1092fde725332ae3296e8
(cherry picked from commit 19a7d4f1719c693a5f94e010280eb4aeea9d6b42)
1 file changed