Fixes a coding mistake.

Also removes trailing whitespace.

Signed-off-by: Andreas Schacherbauer <andreas.schacherbauer@wikitude.com>