Handled empty date exceptions in project profile Angular