fix handling of missing options parameter

with adding empty object as default parameter