fixes undefined offset in ToolbarListener

This change catches he notice shown when $partsLatestRelease[1] is not set

Notice: Undefined offset: 1