Fix potential nan

git-svn-id: https://svn.aspect.dealii.org/branches/freesurface@2558 244a8438-9d6d-46c2-a098-b74c898f6b90