check for null bitmapRect