Check for nil

Return 0 for repeat_key if participant is nil
Check participant existence before calling advance
Merge branch '1.4.0-patch' of https://github.com/NUBIC/ncs_navigator_core into 1.4.0-patch