fixed incorrect return values, relating to previous change

previous devel commit  0161dfbfde71e6dd29841145d1506b6345be2fc1 reversed the logic, this catches places where it was LGError class was used,  but not changed in accordingly.