Fixed wrong behavior in method search_s in BaseLdap class.

Variable 'py_result' can be not initialized if self.page_size > 0
because it's initialized only in the 'else' block.

Closes bug 1305056
Change-Id: Ib9cfb2c03279d97ec0c1a4f8cb45fe5b568b9d7a