removeProp: Fix errors in code example

Fixes #604