removed null pointer exceptions when deleting the last workout