Did you make the square via the tool or draw it? I just check it on my copy and it doesn’t have to be a path but it has to be a closed shape as @micrololin stated.
Deselect everything and do a ‘edit → select open shapes’
If it’s not a closed shape, it will be selected.
Only mask and image are to be selected.