Add missing check for invalid precision.