fixed bug to handle non-existing deadlines
Merge pull request #765 from davherrmann/issue#763

fixed bug to handle non-existing deadlines