Fixed null reference error
Merge pull request #234 from Lynart/loggedExerciseNullErrorFix

Fixed null reference error