Fix code=0.0 bug in Expressions

Need to check if the code is None, rather than just hope the user
provided something that doesn't evaluate to False in a boolean context.