[layer23] Fixed handling of IMSI in special cases