Prevent error if datamodel undefined.