Make partial derivative work correctly also for kappa=0
Make partial derivative work correctly also for kappa=0

stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math