Fixing issue #780.
Entity->modified() behaves correctly with empty values (empty string,
zero and null).
Merge pull request #781 from rapzo/dev

Fixing issue #780.