Fixed setaccount accepting foreign address

Fixed issue https://github.com/bitcoin/bitcoin/issues/4209 where using setaccount with a foreign address causes the address to be added to your receiving addresses.
The reason I'm asking is because I don't have much to gather from... the rest of the file's indentation is messed up. Let me see if I can find when it happened and maybe there was a good reason.