Fixed bug where 'undefined' was being displayed in the title field. Closes #13