fixes undefined offset in ToolbarListener

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