State law versus state law maybe he has a shot but the Fed GFSZA doesn't have any exception for this if it wasn't unloaded -and- in a locked container (locked trunk doesn't count as a container, AFAIK).
Not an ideal case but the amended GFSZA after Lopez hasn't really had a head-to-head challenge from an otherwise law-abider that's been appealable.