Fix for division by zero error when copying appointments

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/trunk@5905 9e4fa352-aafb-0310-9071-df624684024b