Fix the behaviour of EM_GETLINE message.