Fix options.title being ignored on render

Title is being set to the first item even if options.title is specified.  Needs to check that its set before resorting to the first item.