fixed bug when BitmapData.load() fails