If a lawful cause of arrest exists, the arrest is lawful even though the officer charges the wrong offense or gives a reason that does not justify the arrest.