Fix issue where model without rules would not save

Signed-off-by: Bryan te Beek <bryantebeek@gmail.com>