[clib] Fix bounds check on getMolecularWeights

The incorrect bounds check here caused problems with phases where
there were more elements than species.

Fixes Issue 173.

git-svn-id: https://cantera.googlecode.com/svn/cantera/branches/2.1@2544 02a645c2-efd0-11dd-984d-ab748d24aa7e