Fixes #1256 : Updating user posts breaks postbit

1. Fixing post pid which was wrong.
2. Invalid code chunk removed. What is the logic behind checking "If not isset" inside "If isset" of the same thing?