Checking that dates are set before parsing them

Change-Id: I13e002a42dd8a69bc608b5426a69d723d8084a3b
diff --git a/mCordPortal/src/app/services/helpers.js b/mCordPortal/src/app/services/helpers.js
index 9386dd9..a509f81 100644
--- a/mCordPortal/src/app/services/helpers.js
+++ b/mCordPortal/src/app/services/helpers.js
@@ -26,6 +26,11 @@
     };
 
     this.stringToTime = (string) => {
+
+      if(string.length === 0){
+        return;
+      }
+
       let jsDate;
       jsDate = new Date();