Add Magento 1.9 support

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