Shifted the ticking of staff checkboxes, so null pointers are handled correctly.