Stop encoding DocumentFragment as null. Make sure the generated list is JSONifiable