Check cakeWamp.options before checking properties

Without this check, and without options defined JavaScript errors occur.