fixes a problem on Linux where apparently there is no "primary" monitor returned (NULL)

fixes #113