Adds check for null value before updating mongodb