[PTFM-8679] fix bad attribute parsing

@AndrewCarroll would you mind reviewing this change? I think it's a legit way of parsing GTF attributes, but I wanted to get your educated opinion. I'm currently running the Jenkins test from the branch, but it passes the few manual tests I've done. Thanks!