Fix #570

The main fix changes the behavior of getSource, and should return null only if currentText is null itself.

The fix in the max-len rule removes the now unnecessary special-case handling of null  as returned by getSource that I had to introduce earlier.

The last fix adds a test for "" being fed to verify (is this the proper place/test to do that?).

Thanks a lot!