fix the magic __get method to not throw an exception