Fix: accessing possible nil variable.

Accessing res['meta']['next'] without checking if meta exists
may cause a traceback.