Check whether message handle is valid in isTranslatableMessage

Otherwise it throws exception: 'called before isValid'

Change-Id: Id4fb9c461c51338741539ed7642d25c26e20aaa5