Check to make sure the fence ratio is specified

Fixes a missing check for NULL.