BeatGrid::findNthBeat will now find Nth beat (#1313063)

Fixed bug in BeatGrid::findNthBeat (#1313063).