Fixed an issue which would cause JS errors in case users are being redirected (e.g. on session time out or mandatory time accounting).
Fixed: Open tickets in 3 days show right function but wrong number (bug#10805).
Squashed commit of the following:

commit 2b1120b630bdd68826d376efc64a072f459bde0c
Author: s7design <otrs@s7designcreative.com>
Date:   Wed Nov 5 12:33:41 2014 +0100

    Fixed issue with number of customer tickets showing in customer info
Fixed bug#10856 - TicketHistoryGet() dynamic field values.
Fixed bug#10856 - TicketHistoryGet() dynamic field values.
Merge remote-tracking branch 'upstream/master'