Check for childnodes in AMremoveBrackets.  Fixes issue #19