OnClick Navigate Event "Received event for missing view"

I think it is a race condition.
When I have a Navigate action as well as a script action, some of the scripted statements, specifically system.perspective.sendMessage ends up without a source to be executed from and I get a Warning log "Received event for missing view ".
I think the intended receiver can't trust a message without a source so the message handler is rejecting the message.
Changing the order of the script and the navigate actions doesn't make a difference.
The fix is simple: delete the Navigate action and put system.perspective.navigate at the end of the script. All of the scripted statements are executed before the navigate statement takes the parent view away.
Ignition 8.1.43