bugfix: When the initial value was incorrect, a 500/AttributeError was raised because no check was performed to ensure the validity of the initial value (i.e. check that the value wasn't null). That check was added to return None in such cases.