Improved retrieving of location when collecting consult messages. Use the location given in error/2 terms when possible and use the stream position otherwise.