Fix for popular products sorting

https://github.com/opencart/opencart/issues/433