Can the difference of 2 undefined limits be defined?
Remember that the rule that you referred to, "the rule of difference of limits", is not just the equation $$ \lim_{x\to a}(f(x)-g(x))=\lim_{x\to a}f(x)-\lim_{x\to a}g(x) $$ but rather the statement that, if both of the limits on the right side of this equation are real numbers, then the limit on the left side (is also a real number and) is given by this equation. So this rule does not apply to the limit in your question.
More generally, when learning rules (or theorems or principles or whatever they may be called), don't just learn formulas, but pay attention also to the words around them. The words are not just decoration but are essential for the correctness of the rule.
What you did is correct. The point is that in its initial form, your problem was of an indeterminate form. Basically, if we have a limit that "looks like" $\infty-\infty$ or something like this, the value can basically be anything under the sun. It can be illuminating to see the process in reverse. $$ 0=\lim_{x\to\infty} 0=\lim_{x\to\infty}(x-x)\ne \lim_{x\to\infty} x-\lim_{x\to\infty}x"="\:\text{nonsense}.$$
Just to add to what has been said, a limit expression that has undefined (or infinite) value cannot be treated as an ordinary real expression, and so it technically is invalid (senseless) to manipulate it as if it were a real number. For example $\sin(n)-\sin(n) \to 0$ as $n \to \infty$, but "$\lim_{n\to\infty} \sin(n)$" itself is simply undefined and it is technically invalid to even write "$\lim_{n\to\infty} \sin(n) - \lim_{n\to\infty} \sin(n)$", not to say ask for its value (unless you want to have propagation of undefined values...).
So the literal answer to your question is:
The difference of 2 undefined limits cannot be defined, by definition. (Even if you wish to permit writing potentially undefined expressions, it would not make a difference, since any expression with an undefined subexpression will itself be undefined.)
The correct statement is that it is possible for the difference of two expressions to have a limit even though neither of the expressions has a limit (under the same limiting conditions).