Fix handling of non-whitelisted method calls.