Added missing null check for value in forward method