Merge pull request #950 from paul-elliott-arm/fix_tls_record_size_check_2_28

(Backport 2.28) Fix the wrong variable being used for TLS record size checks