Standing patients queue fix

In #414 the patient queue problem popped up again. After investigating the issue I found that my previous pull request doesn't fixes all cases.
This pull request fixes another problem where patients idle in front of the drinks machine after using it. It also adds a workaround for patients that idle in front of drinks machines.

I checked the problem of #414 against beta3 and it doesn't happen with my fix, but in rc1, it does. I reviewed all commits but couldn't find something that caused it. In rc1, it seems to work on gamespeed 5, but not on other game speeds.