Invalid syntax during attribute target parsing can crash parser. Fixes #14245