[Reviewer: Alex] Protect against mixing up calling and called numbers in SAS (fixes #399)

Speculative fix for issue 399 - I haven't tested it yet, but wanted to check it looked right first.