handle null fragment manager