Fixing NoneType issue with limit and offset

Fixes issue where the server returns 500 when the limit and/or offset in
paging are set to None.
- Adding tests for cleaning the paging parameters.

Fixes: bug #1202857
Change-Id: I769d44530be96ef18728b431acd1e198e8a84219