Fix Cannot call method 'getAllLogs' of undefined
Merge pull request #1982 from bootstraponline/master

Fix Cannot call method 'getAllLogs' of undefined