Fox: 'Growing Pains' star was on 'brink of homelessness' before Kirk Cameron and Alan Thicke stepped in