Don't crash on getting previous timestamp if we are before first entry

Fixes: 258682670
Test: npm run test:component
Change-Id: I5e58367656f7c69a2a58c36ebaf45a78015d4596
1 file changed