correctly check send_only_ticket_commits option, likely fixes #540

This changes the behavior of the Lighthouse hook to check the send_only_ticket_commits flag correctly. Unfortunately I was not able to test this change because I could not get the server to run locally (see #540)