Fixes NPE with ColorImage when #getColorImage returns null.