Check to make sure the fence ratio is specified

Fixes a missing check for NULL.
Merge pull request #29 from Stebalien/check-for-fence-ratio

Check to make sure the fence ratio is specified