fix crash with nil worker block