return None, None if data is empty
Merge pull request #2 from 5263/item-fix

bugfix: return (None, None) if data is empty