50th goal couldn't have arrived at a better time for Cahill