Throw exception when a BINARY def does not contain a length.