bug #4551 Wrong test in source code

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>