[kmf-system-test] Handled error in color.js to avoid bug in Firefox

Change-Id: I44c56fc9c5d8cc41c91f28eedd0981fd13341e32