Try to fix infinite loop of "no frame" error

Signed-off-by: Piotr Galiszewski <pgaliszewski@corp.bluecherry.net>