null pointer check for getObject in datacontrol and selection plugin

Status Job ID Name Coverage
  Test
passed #1456
Linux
clang-c++11-Qt4

00:36:47

passed #1460
Linux
clang-c++11-Qt5

00:49:28

passed #1458
Linux
clang-c++98-Qt4

00:29:57

passed #1462
Linux
clang-c++98-Qt5

00:35:25

passed #1455
Linux
gcc-c++11-Qt4

00:48:55

passed #1459
Linux
gcc-c++11-Qt5

00:58:42

passed #1457
Linux
gcc-c++98-Qt4

00:34:28

passed #1461
Linux
gcc-c++98-Qt5

00:43:23