onBlockIpComplete: Check that $blockTarget is an object
The block target can be a User object, a user_id or an IP. When the
target is a User object, we have to get their user_id, so we have to
check for that. However, get_class() works only on objects and emits a
warning otherwise, so swap it for instanceof.