Fix "Uncaught TypeError: Object.keys called on non-object" when no
initial attributes