Title code now works when active dataset is null