fix recursive path creation bug for /data/media/0

Change-Id: I36a6a6ddac06cca4a0388959a70528f9b6e67cd5
fix null struct exception

Change-Id: Ie160465169a97b3fe3901076993605f57fbe41a7