Fixes two minor bugs in connection where invalid results were given.

Fixes #429 and PR271932

    Modifies the connection to no longer return empty string and to
    return '2g' for 'gsm'