Add undefined and null check for creating attributes
Add undefined and null check for creating attributes

Boolean attributes that were false weren't getting passed this.

dcslack/restle,dylnslck/restle