fix erroring when destroying the last tileable window