Fix erroneous return value if text.length() == 0