Check to see whether trackInfo is null before getting track number.

 o Fixes #1