Add nullptr check for item returned from getMemberById.
BUG: 358871
Typo
What branch
To master. 5.6 branching didn't happen yet.