fix various null problems while parsing rules from the server
fix various null problems while parsing rules from the server

tommista/android-net,tommista/android-net,vinli/android-net,vinli/android-net