fixing a couple of corner cases that were causing crashes

I ran into the issue with file path when some symlinked file was missing.
The other issue is when gantt chart is rendered for a job that's never executed.