Fixes bug in local predictions reported by a BigML user

The main fix is about the bug in local predictions when the field to predict with is a text field and the term to predict with contains special chars for regex such `?\$*.`.

There is a minor bug fix in the regex that validates de pattern of a model id for a shared model. With this fix a user can load a shared model directly.