Changed query to add format_title only if a corresponding title field is present.