Hide deadlines on steps and lessons when the project doesn't have a deadline

Fix #1005