adjusted errorhandling if java viewstate is missing