This fixes #7828.  It now takes the Active field into account.  Devices can't be late if they are not active.