Check cakeWamp.options before checking properties

Without this check, and without options defined JavaScript errors occur.

It looks like the GitHub editor removed a line break character on line 116 as well.