Avoid null reference exception.