Redmine#5149: fix sublist to only prepend cf_null if needed

(cherry picked from commit ecd5680cbb0872f4f856104f5b3c4abcf12ea198)