Fix withArgs method when an empty array passed. Issue #278

Issue #278