Patched flag module to cope with this notice: https://drupal.org/node/2197041