Add in minor error checking around gasprices.