Fix clearing a fragment when existing fragment is empty