LNKCollaborativeFilteringPredictor: added safety check for k parameter