fixed error on API call without parameters

This addresses #8.

Internal request creation is failing when the $parameters array is set to false, which occurs when API:get() is called without a parameters array in the second parameter.