[bugfix][pointsource] Do not move a variable that is still used afterwards Closes #899 See merge request !2193