Fix a but getting 0

Fix a bug that prevented one to get an attribute of an Item which has 0 value. (Or any value that bool() casts to False.) I'm not quite sure if this change has no side effect.
Merge pull request #2 from MeraX/master

Fix a bug getting 0