Add a couple of preventive null checks when referencing allocated instruments.