Fix ignoring fragment when existing fragment is an empty string