Fix issue where model without rules would not save

Signed-off-by: Bryan te Beek <bryantebeek@gmail.com>
Merge pull request #17 from bryantebeek/fix/1

Fix issue where model without rules would not save