The library file "SparkFunISL29125.cpp" contains this: Wire.begin(); and I guess you want it to contain Wire.begin(21,22) from what you have said in a later comment. Best would be to comment out Wire.begin(); in the library and put the corrected version in your sketch.
In such a situation I'd suggest copying the .cpp and .h files of the library into the sketch folder. You also have to change this in the sketch: #include <SparkFunISL29125.h> to #include "SparkFunISL29125.h" to address the local copy.
Further, the schematic of the SparkFun ILS29125 breakout board shows that the on board I2C pullup resistors are connected via a solder jumper which by default is not bridged. You appear to have done the I2C scan test with two other devices connected and may have "benefitted" from their I2C pullup resistors. If you did the live test with the ILS29125 alone, there may have been no I2C pullup resistors in the circuit.

