Fixed bug where empty dialog title attribute would result in a title of 'null'