Check if author is null before check futher details.

We have some notes on merge requests where the author is null. We using Gitlab since v3 so it could be some inconsistency when we had deleted a user.