Check for assignment ID in deadlines. Fixes #309.