fix(Magic8Task): fix NullPointerException when instantiating a
Magic8Task with null deadline