Fix max-len crashing on empty files

context.getSource apparently returns null if the original content is the empty string.