Fix bug in the term-expansion of message-sending calls made from within Prolog modules when using SWI-Prolog or YAP as the backend compiler

A broken warning message could be printed when the object receiving the message was not yet loaded. Thanks to Andrew Becker for the bug report.