Fixed problem calculating next bond DEQ Identifier

There were some imported bonds that did not match the expected format.
It caused sql to blow up when I converted them to integer to calculate
the next value.