Allow null id for error. Updated test.