Background data restriction fix (issue #11)

* Use the correct boolean to detect if a connection is available
(connection will not be permanently connected when 'Restrict background
data' setting is enabled in 'Data usage' settings)