common: APN with a dot in second position are not invalid

APN with a dot in second position (example: "t.est") are wrongly
considered invalid.
diff --git a/src/common.c b/src/common.c
index 4dcbc83..f955a76 100644
--- a/src/common.c
+++ b/src/common.c
@@ -709,7 +709,7 @@
 gboolean is_valid_apn(const char *apn)
 {
 	int i;
-	int last_period = 0;
+	int last_period = -1;
 
 	if (apn == NULL)
 		return FALSE;