[KARAF-2913]JAAS JDBCBackingEngine has the wrong condition to iterate results, no users are returned
(cherry picked from commit 5ae68719554dd13d72598ad18cef533518ab9cf4)
[KARAF-2914]JAAS JDBCBackingEngineFactory: Wrong user query from the configuration
(cherry picked from commit 732e9bd17fa1dc046aa9575040ec9d3a7c924171)