PIM-1395 : Give buttons to download log and export file only if existing

Bug fix: [yes]
Feature addition: [no]
Backwards compatibility break: [no]
Unit test passes: [yes]
Behat scenarios passes: [yes]
Checkstyle issues: [no]*
Fixes the following jira:
 - PIM-1395
 - PIM-1396