Fingerprint beacons array length check

For resolving bug: crashes when no AP is visible
Merge pull request #2 from neols/master

Fingerprint beacons array length check
Merge pull request #3 from elyas-bhy/develop

Merged changes from primalpop repo.
Merged previous changes.