Catch invalid patch and throw RemoteChangeInvalidException

Fixes #32