Fix for elem.children(null).

Makes api jquery-compatible.