TRUNK-2658: Javascript errors on patient dashboard in firefox
(cherry picked from commit 74112db4ea84278405e616e1787ed1f8f3a7b508)