Lagrange method couldn't handle moments due to missing elif.

This looks like a simple typo and it was giving me headaches when trying to get the lagrange method working on a segway physics model.