see discussion here!
It is not a bug. In bear title or name of the note is defined by the content of the first line. The dev said that this is not going to be changed, alone because it would change the titles of many users and for several other reasons. But maybe a new search expression for untitled notes will be introduced