It's not a bug, it's just because the GPS app is using much more power then the charger can deliver. You should check the amp. of your charger. I have one of 2100 mA and I can use my iPad with Navigon while my iPad is charging.
This charger sold in the Apple Store will provide your iPhone enough power to both run the GPS app and charge at the same time.