Cannot create appointments (regression from bug #702922)

(cherry picked from commit 286ab97d76d02a6c6a77ad919dc9d87703536d4b)