VE-1533: Check hasOwnProperty for typeToRdfa

https://wikia-inc.atlassian.net/browse/VE-1533
This looks good to me but please add inline comment explaining why this is done in such way. (Maybe even link to JIRA ticket.)