If your neighbor calls me, and asks me to take the key out from the Welcome mat, enter his house, pick up his wallet, and bring it to his office for him -- and I screw up, and enter your house, and rummage around until I find your wallet, am I trespassing?
Where in the story did it say that the cop did all this?