[[ Bug 13875 ]] If 'JumpTo' is specified in RunOnMainThread, then execute callback directly.
[[ Bug 13875 ]] Improve error handling for RunOnMainThread - will return NotImplemented for incorrect combinations of flags.
Merge pull request #1404 from runrev/bugfix-13875

Bugfix 13875