catch exceptions when we trying to save the coding answer results

A fix for: Mysql2::Error: Data too long for column 'result'