MDL-47076 badges: Add checks to user fields during badges restoration

Change-Id: I49d2137666d2d7c1f6abca7ae83c07b326d9b0c4