Fixed model rollback in the case where an attribute is not assigned so that it rolls back to unassigned instead of cached value. Aadded a supporting unit test.