Return default magento version when core access is denied

Bug fix: Yes
Feature addition: No
Backwards compatibility break: No
Unit test passes: Yes
Phpspec specification passes: Yes
Checkstyle issues: No
ChangeLog updated: No
Fixes the following issue: