Fixes a bug where saving an extisting page causes a duplicate slug error

As described in issue #468, @marekmurawski's patch causes a small bug that doesn't let you save an updated page. This patch should fix it.