Fixed potential crash when a completion is not found.