Update massedit.py

Fixed case where the result of the manipulation would return an empty string.