[FIX] when check for possible overlapping leaves, qualify by state too.

When a leave request is rejected, another (possibly amended) request can be made on the same day.