[BUGFIX beta] Add assert when setting values on ObjectController without model.

Fixes #4962.