Fixed empty value extension to handle 0 values.