Added some brief error checking before setting textView