fixes an empty title attribute error

fixes #2943