Most likely this is not a bug. There are several things that factor into turret aggro. The turret aggro's in a circle around it so it's very likely that you crossed that line before your minions because it's not a straight line. If you want to see this aggro radius, just go into a bot match and turn on turret indicators.
Alternatively, a turret will target you if you approach it and a nearby enemy is taking indirect damage from you such as DoT (ignite, scorch, red buff, any poison/burn ability) or from champion minions (Heimer turrets, Zyra plants, Malz voidlings, etc....). That doesn't seem to be the case here.
If it continues to occur, try to replicate it in a custom and submit that information to Riot using the report a bug feature in the client or a ticket.