Avoid fatal in ContentHandler::getUndoContent by null content