Correct bug regarding the return value, when copy of messages fails.