Index: better_formats.module
===================================================================
--- better_formats.module	(revision 2705)
+++ better_formats.module	(working copy)
@@ -93,6 +93,7 @@
   // Using $form['#id'] instead of $form_id because $form_id is in the form of
   // 'TYPE_node_form' which varies with the content type while $form['#id']
   // is always 'node-form'.
+  if (!isset($form['#id'])) $form['#id'] = '';
   switch ($form['#id']) {
     case 'comment-form':
     case 'panels-comment-form':
