dalvik: fix a bug in redundant branch elimination

Change-Id: Ic6e85b3d45499ae772d92d346f35a4c6c979b4f1