Added try-catch when getting userhandler object - bug fix