EUCA-7861

used proper check for allimages and amazonimages push message

The old code was causing some push messages to be ignored, resulting in data not being fetched.