check if get_all params are empty, remove it from url params if empty

Empty values are causing the api to fail. Hence `get_all()` doesn't the correct result when some parameters are not passed. (like `inactive`).