Protect against NoneType value in prepare_value.
Merge pull request #36 from vinnyrose/prepare_value_nonetype_protect

Protect against NoneType value in prepare_value.