feat(DetailSearch): Add constraint on conditions with regexp operator (refs #4887)

Also:
- Adapted DetailSearch's layout/code to allow constraints to be
  displayed in conditions
feat(Report): Prevent SearchDoc's exception from blocking document's view (refs #4890)

An error in the query will be reported as a addWarningMsg instead of
blocking the full document's view.
feat(DetailSearch): Add constraint for unbalanced parenthesis (refs #4889)
feat(DetailSearch): Add constraint for malformed timestamp or date (refs #4888)