Skip unavailable previous element

The same way we skip missing next elements we should skip previous missing ones.
Merge pull request #5826 from fgrandjean/patch-1

[Joyride] Skip unavailable previous element