fix for: https://issues.apache.org/jira/browse/AMQ-4156 More defensive checks when queuing read and write checks to the static executor.