Fix markdown rendering with nil value