[PATCH aeolus] BZ#714286 - Fixed bug in matching code for realm