Issue #2206263 by sun: Drupal_is_cli() returns FALSE on PHP CLI.
Issue #2207219 by larowlan: Fatal: Call to a member function isSubclassOf() on a non-object in CommentManager.