While one can certainly argue that there is little merit in specially punishing that particular mechanism of achieving those unlawful ends, that clearly is not the same thing (or even a similar thing) to a general ban on flag burning.
Titles of laws are rarely accurate indications of their substance.