That's a good thing to check for, however it is clearly checking a lot more than that, and being tripped up by ingame items that I own being replaced by other in game items that I own. Is there any ingame item that is not allowed in a portrait?
This could have been simpler if they weren't so stingy with server side data.