Add time entry discarding.
Fix null ref exception on missing project.