Workaround bug crashing list build if ref is empty.