Check queue size before access to prevent runtime exception
merge nathanlws: Defensive queue access when talking to backend

Merge pull request #49 from nathanlws/sql-layer-adapter-jdbc/defensive-pending-queue-usage
https://github.com/FoundationDB/sql-layer-adapter-jdbc/pull/49