Do not forget to close open file on error.

Patch by DaytonaHack.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8452 4b0bc96b-bc66-0410-9d44-ebda105a78c1
webif: Align fields in templates data before compression.

This prevents crashes on architectures that do not allow unaligned access.
We lose a litlle bit of binary size (~520 bytes) but this is unavoidable
because unaligned access causes crashes.

This fixes crash on DD-WRT reported by basta2k.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8453 4b0bc96b-bc66-0410-9d44-ebda105a78c1