libhwcomposer: correct handling of the number of supplied displays

Change-Id: I6cf389ef5c906371743ed9f43d4b964d5d90cf99
Signed-off-by: Simon Busch <morphis@gravedo.de>