Knicks End Losing Streak by Holding Off the Hornets