BS-9238 Fix error message when document name is empty, to use general
validator