Quite a while back I had an issue with it crashing when it tried to scan corpses.  There might be a fix in the latest quest repository, but I just commented out the corpse check in plugins/check_hasitem.pl.
At the top of the function there's this line:
	Code:
	my $body_count = $client->GetCorpseCount();
 Then the very last check starts with
	Code:
	#Check corpses
if ($body_count > 0) {
 I just commented that all out until the function returned.
--- Edit ---
Another way would be to use plugin::check_hasitem_inv()