Fix fail in FITC when number of latent features is not equal to number of training features

This fix is for #1680.