Fix getattr to have default value as intended in getPropertiesForUser

Without a default value getattr will raise AttributeError and it seems that the code was already written to expect None as the default value.