ALlow for xPath being null - update replaces the original.

Fix for NPE reported by Jophy.