Fix issue with PiFace relay events not firing