Just from reading this, I don't feel like you were chewed out. The only thing you quote him as saying is, "that magnet will never change the light for you!" He didn't tell you that you did the wrong thing. Since you weren't blocking any traffic, I don't think there is any provision of the California Vehicle Code you violated, so he can't chew you out for disobeying the law.
Although the California legislature has failed to pass a law that would clearly allow a vehicle to proceed when a bicycle fails to trigger the sensor, I think there is a good argument that a combination of Vehicle Code section 21800(d)(1) and 21450.5 means that if the bike doesn't trigger the sensor, the traffic control signal is "inoperative" for your purposes, and you may "proceed with caution when it is safe to do so." Some California law enforcement officers think this is the law. Others think it is a violation if you proceed. Others don't have a clue.
Maybe if you were there, it felt like you were getting chewed out, but all I read is a law enforcement officer trying to help you out. Next time you are stuck at a red light and there is a law enforcement officer there, make eye contact while he is sitting there, see if he waives you on.