Fix bogus logic in capabilities file creation

rootcling was checking for the wrong string to be non empty.