Fixed a bug in CustomGBForce

See https://simtk.org/tracker/index.php?func=detail&aid=1961&group_id=161&atid=435 for details.  It's unlikely many people have actually run into this bug.