PLGAJS-93 Fix AngularJS completion when there is invalid HTML syntax