Added check for NaN in fgplvmPointLogLikeGradient.m