minor fix,if path does not include ':', beego will crash of "index out of range"

如果StaticPath里的某个field里没有:就会引起beego的crash。所以增加了len的判断。