Thanks for the info.
If you removed all cloak modules from the cargo then your cloak capacity (shown in header in red) went to 0. In that case a patrol inspection should have led to confiscating the cargo and fining you.
I'll check.
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.