Fixed variable reference in contentFormatToBinary function

When you set a non registered content format, the contentFormatToBinary function will throw an undefined exception because `value` is not defined. 
I updated to variable naming to fix this problem and to be more consistent with the rest of the code.