Fixed: Check if bitmap is ok before accesing properties