Handle 'None' costs and markups when generating statements

Transaction costs and markups can be `None`, we need to handle this when generating statements.