Seems to me that you set the parameter wrong:
`printAlbumMenu('jump', NULL, '', '', '', '', '', gettext('Gallery Index'));`
should be
`printAlbumMenu('jump', NULL, '', '', '', '', gettext('Gallery Index'));`
It's the 7th parameter not the 8th.
Besides that I found indeed a bug in the jump variant but that has nothing to do with this actually.