Currently, the getreceivedbyaddress RPC will return a value of 0 if a non-IsMine address is passed in. This is confusing, and should probably return an error, as it's a situation the caller should be aware of.
Not doing this leads to confusion, with people assuming it can query non-wallet addresses.