Fixes crash when attribute exists with value 'None'