[qtmozembed] Improve rendering guards

Do not allow refreshing texture in inactive state.
In addition, do not add node to scenegraph if
size is invalid.