Fix job hierarchy bug.
Fix job hierarchy bug.

JobTree.addJob may return 'None', this prevents that from happening.

Change-Id: I95f41088ea160d4e33a507c4a413e3fa7f08906b

gooddata/zuul,gooddata/zuul,gooddata/zuul,gooddata/zuul,gooddata/zuul