Firt run to_python, then do check for None. Prevents errors with Djangos new migration framework