Repository: hashgraph/hedera-mirror-node
Issue: Crash on invalid account balance csv

Actual:
```console
2019-08-15 15:10:37,094 INFO  [main  ] configloader Loading configuration from ./config/config.json
2019-08-15 15:11:17,133 INFO  [main  ] balancelogger No balance file to parse found
2019-08-15 15:11:17,133 INFO  [main  ] balancelogger Last Balance processing done
2019-08-15 15:11:17,133 INFO  [main  ] balancelogger Balance History processing done
2019-08-15 15:12:17,209 ERROR [main  ] balancelogger File ./MirrorNodeData/accountBalances/valid/foo.csv is not named as expected, should be like 2019-06-28-22-05.csv
2019-08-15 15:12:17,221 INFO  [main  ] balancelogger Last Balance processing done
2019-08-15 15:12:17,222 ERROR [main  ] balancelogger File ./MirrorNodeData/accountBalances/valid/foo.csv is not named as expected, should be like 2019-06-28-22-05.csv
2019-08-15 15:12:17,223 ERROR [main  ] filewatcher Exception : {}
java.lang.StringIndexOutOfBoundsException: begin 0, end 10, length 7
	at java.lang.String.checkBoundsBeginEnd(String.java:3319) ~[?:?]
	at java.lang.String.substring(String.java:1874) ~[?:?]
	at com.hedera.utilities.Utility.moveFileToParsedDir(Utility.java:499) ~[classes/:?]
	at com.hedera.balanceFileLogger.BalanceFileLogger.processAllFilesForHistory(BalanceFileLogger.java:162) ~[classes/:?]
	at com.hedera.balanceFileLogger.BalanceFileLogger.onCreate(BalanceFileLogger.java:149) ~[classes/:?]
	at com.hedera.fileWatcher.FileWatcher.watch(FileWatcher.java:61) [classes/:?]
	at com.hedera.balanceFileLogger.BalanceFileLogger.main(BalanceFileLogger.java:143) [classes/:?]
```

Expected:
Reject invalid file and move on

Changed files:
src/main/java/com/hedera/balanceFileLogger/BalanceFileLogger.java

diff --git a/src/main/java/com/hedera/balanceFileLogger/BalanceFileLogger.java b/src/main/java/com/hedera/balanceFileLogger/BalanceFileLogger.java
index 0406598ed..3a5acffdc 100644
--- a/src/main/java/com/hedera/balanceFileLogger/BalanceFileLogger.java
+++ b/src/main/java/com/hedera/balanceFileLogger/BalanceFileLogger.java
@@ -83,7 +83,7 @@ public class BalanceFileLogger extends FileWatcher {
 		super(pathToWatch);
 	}
 	
-	static void parseFileName(File fileName) {
+	static boolean parseFileName(File fileName) {
 
 		String shortFileName = fileName.getName().replace(".csv", "");
 		if (shortFileName.contains("_Balances")) {
@@ -98,6 +98,7 @@ public class BalanceFileLogger extends FileWatcher {
 			String[] fileParts = shortFileName.split("-");
 			if (fileParts.length != 5) {
 				log.error(MARKER, "File {} is not named as expected, should be like 2019-06-28-22-05.csv", fileName);
+				return false;
 			} else {
 				Calendar c = Calendar.getInstance();
 				c.clear();
@@ -114,6 +115,7 @@ public class BalanceFileLogger extends FileWatcher {
 				fileNanos = fileTimestamp.getNano();
 			}
 		}
+		return true;
 	}
 
 	private static File getLatestBalancefile() throws IOException {
@@ -187,7 +189,9 @@ public class BalanceFileLogger extends FileWatcher {
                 	return false;
         		}
 
-                parseFileName(balanceFile);
+                if ( ! parseFileName(balanceFile)) {
+                	return false;
+                }
 
                 PreparedStatement selectBalance = connect.prepareStatement(
                 		"SELECT id"
@@ -314,7 +318,9 @@ public class BalanceFileLogger extends FileWatcher {
                 // process the file
                 connect = DatabaseUtilities.openDatabase(connect);
 
-                parseFileName(balanceFile);
+                if ( ! parseFileName(balanceFile)) {
+                	return;
+                }
 
                 if (connect != null) {
                     connect.setAutoCommit(false);