[FIX] Fix issue with accessing preview index and add error checking in tiki-pagehistory.php
- Fixing the issue with accessing the preview index adding an error checking in tiki-pagehistory.php
- For issue: https://app.glitchtip.com/evoludata/issues/5593336