fix for potential string/int comparison depending on spree version