Do not set _is_defined to true if there are no DoFs.

Closes #4330