[FIX] crashes when using a server that uses namespace prefix on xml elements

I am using owncloud for my server. This fixes a couple crashes that I had.