Added rule for changing empty array into null and associated test