Fix for br924.

Prevent compiler crashes after a function argument fails to be
elaborated (back-ported from development).