fixed NPE

Fixed a NPE in the BitmapWorker for custom sources.