Empty expression throws error "Error in expression " " in root."

When a Property/value (and perhaps other expressions) is empty but has a space or a newline in it, Morpheus throws the somewhat unhelpful error message:

Error in expression "  " in root.

Would be good to have a proper error handling showing the line or plugin where the error appears.

Minimal example: error_in_expression_in_root.xml