Ticket #2493: handle regexp errors in file operation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2493_file_operation_regexp_error'

* 2493_file_operation_regexp_error:
  Ticket #2493: handle regexp errors in file operation.