Set the partial derivatives explicitly for ghosts after the standard values have been calculated.
Fixes #576 (closed).