I tried to replicate it - I made sure that I don't have any cloaking modules and did a lot of aimless travel to trigger an encounter with the police, but this time they did find the illegal cargo, confiscated it and fined me. No changes to my reputation, though, or at least no notification about it. I wonder what happened the first time.