Fixed a bug introduced by no-data-in-the-DOM patch.