Another NPException fix in BitmapItem.