fix($parse): correctly assign expressions who's path is undefined and that use brackets notation

Closes #8039