Fix for undefined and null values being sent as URL parameters (#158)

This change only affects scalar parameters, array behaviour is left the same.