ECMS-5798: Error showing PDF file in a linked detail page

Fix description:
  - Check the validity of jcr:lastModified before getting the value