removed the true branch because $deps was always false
Made sure there are always start and end dates for the gantt chart to prevent the infinite loading

Resolves http://bugs.web2project.net/view.php?id=1377