BUG: Bug in .xs with a nan in level when dropped (GH6574)

closes #6574