First of all, from the picture, the toilet door is not at the end of the bed, and the rush in Feng Shui must be within the appropriate range. If there is no overlap with the bed within the straight line range of the toilet door, it will not be flushed. Maybe your toilet door doesn't have a punch (at least not in the picture).
Secondly, if you are really in a hurry, don't worry too much. You can hang a curtain on the toilet door to ward off evil spirits. However, attention should be paid to the door curtain: it can be solved by the best principle of knee-length, single layer and opacity.
Best wishes.