Fix instance variable not defined warnings due to added deprecations

Also fix the rescue_format deprecation, it seems it was never being
triggered because it was checking for the existence of a not yet defined
variable.
Merge pull request #234 from carlosantoniodasilva/ca-fix-warnings

Fix instance variable not defined warnings due to added deprecations