Fix error occuring when wgTitle is null