coverity#1259905 do not let AbiDocument::parse throw

This also fixes coverity#1259906 and coverity#1259907 .

Change-Id: I55d892517ac93ca43478d51d8e4a20c704ff6790