Bug fix for image with %7B in the src due to bad logic in ng-if directive