Check that deadline is not undefined.