bugfix: handle NGX_DONE or other ret-val in NS Layer

Signed-off-by: Paul Yang(InfoHunter) <paulyang.inf@gmail.com>