Protect against NoneType value in prepare_value.

There was no NoneType protection when FLUENT_PAGES_RELATIVE_TEMPLATE_DIR was False.