Fix crash from invalid canFill/Drain calls. #1042