fixed that queue.offer isn't executed when beforeEnqueue method isn't implemented

queue.offer() isn't executed when callbackHandler.beforeEnqueue returns null.