Checking if field tagged as error is nil before encoding.