Updated lib/stats: Fixed syntax error

Also, it appears to be safer to return null, instead of throwing if the
API is unknown / undefined.
Updated package.json: version 1.0.0