Add EQUELLA views to moodle logs when using LTI

When LTI authentication is enabled, viewing an EQUELLA resource set to
open in a new window does not add an entry to the moodle logs. Log entry
added just before the redirect (similar to view.php).
Revert "Add EQUELLA views to moodle logs when using LTI"

This reverts commit 5cffb232c4022a32bad7da107a34a8f02b832956.
Revert "Revert "Add EQUELLA views to moodle logs when using LTI""

This reverts commit 4ea890b7b13c1e82bc053a6c66c0f3fc1a3a4652.