Set title should set the title property if it's defined. Fixes #227