Bug fix: #385671
- checking if the degreeID is empty or not