Updating categories not to throw exception if not found