Fix call to fetchObject without class name

Without this fix, an error is triggered:
 SQLSTATE[HY000]: General error: Could not find user-supplied class

In fact, it's a regression and drupal cannot run without this fix.