fix exception when reverting a new model with no data
Merge pull request #146 from viki-org/revert-no-data-record

Fix exception when reverting a new model with no data