This patch is for the drupal_entitybrowser plugin, it's a dirty fix that hopefully can be expanded upon