Minor changes in the code

  * Fixed TAB/space mixing;
  * Added checking for empty attribute in math HTML tags;