fix nil being called on trainee#show attendance register