fix changed checking order to avoid possible access violation
Merge pull request #648 from BytesGalore/fix_possible_access_violation_transceiver

fix changed checking order to avoid possible access violation