fix a bug when ordermap element is nil.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>