Check for Limit instances while computing limits (return self)

see 4a72693
This is another instance of https://github.com/sympy/sympy/issues/8309