apply change from https://github.com/podio/jquery-mentions-input/issues/47