No functional changes except ensures model isn't null. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>