Enhanced AbstractResource.setProperty() to remove a property if it is set to null.