Fix PHP fatal error when use catalog product flat.
Merge pull request #45 from sergeykalenyuk/improvement

Fix PHP fatal error when use catalog product flat.