It's OK because they first spotted the train and then waited 7 days before stealing the guns thus complying with a 7 day waiting period.
Clearly this episode shows that Chicago needs something like the safe act to prevent such things.
/sarcasm off.