Modified lpdf to throw error if there are no distributions on which to return lpdfs.