Small bug when no sort field is specified to the HTTP product query API
call (null pointer is referenced in Core).