Move additional check for localName to jslix.get_local_name function.