Trigger ui.ready even if a deferred page is empty. Also, set the loadingDefer before triggering defer:loaded.