Resolves issue where empty files cause cmq to fail